home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / varia / egebook.lha / ege.book / 5 / Employee.h < prev    next >
C/C++ Source or Header  |  1992-06-07  |  310b  |  24 lines

  1. #ifndef Employee_h
  2. #define Employee_h
  3.  
  4. #include <iostream.h>
  5. #include <bool.h>
  6. #include <String.h>
  7.  
  8. #include "Person.h"
  9.  
  10. class Employee: public virtual Person {
  11.  protected:
  12.   int salary;
  13.  public:
  14.   Employee(){
  15.     salary = 0;
  16.   };
  17.   void print(){
  18.     cout << "Employee: ";
  19.     Person::print();
  20.   };
  21. };
  22.  
  23. #endif
  24.